package com.xiyue.leaspring.service;

import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

@ContextConfiguration(locations = {"classpath:spring/spring-jpa.xml"})
@RunWith(SpringJUnit4ClassRunner.class)
public class IDeptServiceTest4 {

	@Autowired
	private IDeptService_JpaRepository deptService;
	
	@Test
	public void testList() {
		Set<Long> allIds = new HashSet<Long>();
		allIds.addAll(Arrays.asList(1L,2L,3L));
		this.deptService.list(allIds).forEach(System.out::println);
	}
	

}
